﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.CommonQuestion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Algengar Spurningar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1> Bæta við spurningu </h1>
    <br />
    <div id="skrifaSpurningu">
        <% using (Html.BeginForm())
           { %>
           <%: Html.ValidationSummary(true) %>
            <div>

                <%: Html.LabelFor(model => model.Title )%><br />
                <%: Html.TextAreaFor(model => model.Title, new { cols = 50, rows = 3 })%>
                <%: Html.ValidationMessageFor(model => model.Title )%>
            </div>
            <div>
 
                <%: Html.LabelFor(model => model.Body )%><br />
                <%: Html.TextAreaFor(model=> model.Body, new { cols = 50, rows = 8 }) %>
                <%: Html.ValidationMessageFor(model => model.Body)%>
            </div>
   
                <input type="submit" value="Skrifa" />
        <%} %>
    </div>

</asp:Content>

<asp:Content ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Spurning" ); %>
</asp:Content>